package com.lastproject.ejb.dao;

import java.util.List;

import javax.ejb.Remote;

import com.lastproject.dto.EmailGroupDTO;


@Remote
public interface EmailGroupDAORemote {

	boolean create(boolean hasPermission, EmailGroupDTO entity);
	
	boolean edit(boolean hasPermission, EmailGroupDTO entity);
	
	boolean remove(boolean hasPermission, EmailGroupDTO entity);
	
	EmailGroupDTO findByID(Object id);
	
	List<EmailGroupDTO> findAll();

	EmailGroupDTO findLastByName(String name);
	
	List<EmailGroupDTO> findGroupsByUserId(int id);

}
